<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v10.6.1/ol.css" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.41.0/codemirror.min.css" >

{% if page.custom_css %}
<link rel="stylesheet" href="{{ page.custom_css }}">
{% endif %}

<script src="https://cdn.jsdelivr.net/npm/ol@v10.6.1/dist/ol.js"></script>

<script src="assets/sldreader-standalone.js"></script>

<!-- Hack version number into page title -->
<script>
document.addEventListener('DOMContentLoaded', () => {
    const titleLink = document.querySelector('.site-title');
    titleLink.innerText = `SLDReader ${SLDReader.version}`;
});
</script>

<style>
    html,
    body {
        min-height: 100%;
    }

    #olmap {
        border: 1px solid;
        height: calc(30vh);
    }

    .CodeMirror {
        height: calc(30vh);
        min-height: 300px;
    }

    .split-panels {
        display: flex;
        flex-direction: row;
        margin-bottom: 0.5rem;
    }

    .split-panel {
        width: 50%;
        height: calc(30vh);
    }

    #custom-geojson {
        resize: none;
        width: 100%;
        height: 100%;
        font-family: monospace;
        font-size: 12px;
    }

    .split-panel .ol-mouse-position {
        font-size: 11px;
    }

</style>